//###############
// FILE : SelectWorkDirAction.java
// WRITER : Lior Zimmerman liorz06 066462300
// WRITER : Ohad Dan ohad_dan 036767960
// EXERCISE : oop ex3 2008
// DESCRIPTION:
// Handles selection of work directory.
//###############
package oop.ex3.fileSearchController;

import oop.ex3.fileSearchView.GUIView;

/**
 * Handles selection of work directory.
 */
public class SelectWorkDirAction extends OpenDialogAction {

    /**
     * Initialize a new work directory selection handler.
     * @param gui Main frame.
     * @param constraints directory\file only.
     */
    public SelectWorkDirAction(GUIView gui, int constraints) {
        super(gui, constraints);    
    }
    /**
     * Put the path at the work directory text field
     * @param text The text to be set.
     */
    public void setData(String text) {
        _gui.getSearchView().txtWorkDirSetText(text);
    }

}
